package com.wanghang89.gmail.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;

public class IOHelper {
	
	public static void closeReader(Reader reader)
	{
		if (reader!=null) {
			try {
				reader.close();
			} catch (IOException e) {
//				e.printStackTrace();
			}
		}
	}
	
	public static void closeInputStream(InputStream inStream)
	{
		if (inStream!=null) {
			try {
				inStream.close();
			} catch (IOException e) {
//				e.printStackTrace();
			}
		}
	}

}
